package com.twentytwok.hospitalsystem22K.mapper;


import com.twentytwok.hospitalsystem22K.pojo.News;
import com.twentytwok.hospitalsystem22K.vo.NewsQueryVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface NewsMapper {

    List<News> selectAllNews();


    int addNews(News news);

//    int deleteNews(@Param("id") Integer id);

    int modifyNews(News news);

    List<News> selectByParams(NewsQueryVo newsQueryVo);

    List<News> selectNewsById(Integer id);

    List<News> selectNewsByTime();



    int selectNewsAsPie(Integer admin_user_id);


}
